﻿using System;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using System.Collections.Generic;

namespace DBSchemaViewer.FrontEnd.DiagramUserControls.Helpers
{
    public class CtlDBTable
    {
        /// <summary>
        /// Check if the user clicked inside a table control
        /// </summary>
        /// <param name="hits"></param>
        /// <returns></returns>
        /*public CtlDBTable HitTable(List<UIElement> hits)
        {
            CtlDBTable tablehit = null;

            // Just take the frist, if there are overlapping elements, ignore the drag and drop relation
            // we could fine tune it using zindex, or ensuring that both entries matches
            foreach (UIElement hit in hits)
            {
                var currTableAttempt = hit as CtlDBTable;

                if (currTableAttempt != null)
                {
                    tablehit = currTableAttempt;
                    break;
                }

            }

            return tablehit;
        }*/

    }
}
